#ifndef OPENSLSOUNDTASK_H
#define OPENSLSOUNDTASK_H

#include "audioabstract.h"
#include "Task_Base/Task_Base.h"

class IAudioData;
class OpenSLAudioImpl;
class OpenSLSoundTask: public Task_Base,public AudioAbstract
{
public:
    OpenSLSoundTask();
    ~OpenSLSoundTask();
public:
    void Init(IAudioData*impl);
    void close();
protected:
    virtual void start(int sampels, int channel,int bitsize);
    virtual void stop();
protected:
    virtual  int svc();
private:
    IAudioData      *m_oIAudioData;
    OpenSLAudioImpl *m_oSoundDevice;
};

#endif // OPENSLSOUNDTASK_H
